﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ClientUploader
{
    public class Response
    {
        private string _message = "success";
        /// <summary>
        /// 返回代码. -1-失败，1-成功，0-一般为空标识，其他-具体见方法返回值说明
        /// </summary>        
        public int code { get; set; } = 0;

        /// <summary>
        /// 返回消息
        /// </summary>
        public string message
        {
            set
            {
                _message = value;
            }
            get
            {
                return _message;
            }
        }

        /// <summary>
        /// 总条数（记录实际返回的记录条数）
        /// </summary>
        //public int count { get; set; }

        /// <summary>
        /// 返回数据
        /// </summary>
        public dynamic data { get; set; }

        public Response()
        {
            code = 0;
        }
    }
}
